$def with(pager)

$if pager['page_nums'] > 1:
	<div class="pagination">
		<ul>
		$for num in range(1,pager['page_nums']+1):  
			<li 
			$if num == pager['current_page']: class="current" 
			>
				$if num == pager['current_page']:
					<a href="#">$num</a>
				$else:
					<a href="/$pager['url']?page=$num">$num</a>
			</li>
		</ul>
	</div>